package com.viphuli.dao.base;

import java.util.List;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;

import com.j256.ormlite.support.ConnectionSource;
import com.offroader.orm.BaseDBHelper;
import com.offroader.orm.TableAble;
import com.viphuli.common.AppConfig;

/**
 * ORM数据库帮助类
 * 
 * @author li.li
 * 
 */
public class XSDBHelper extends BaseDBHelper {

	public XSDBHelper(Context context) {
		super(context, AppConfig.DB_NAME, AppConfig.DB_VERSION);
	}

	@Override
	public List<Class<? extends TableAble>> tables() {

//		tables.add(UserLoginTrace.class);
//		tables.add(SupportAuthorRecord.class);
//		tables.add(OrderRecord.class);
//		tables.add(MonthTicketRecord.class);
//		tables.add(VersionShow.class);
//		tables.add(DownBookRecord.class);

		return super.tables();
	}
	
	@Override
	public void onUpgrade(SQLiteDatabase db, ConnectionSource connectionSource, int oldVersion, int newVersion) {
		super.onUpgrade(db, connectionSource, oldVersion, newVersion);
	}

}
